package com.itheima.health.h5.controller;

import com.itheima.health.dto.SetmealDTO;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.entity.Result;
import com.itheima.health.pojo.CheckGroup;
import com.itheima.health.service.CheckGroupService;
import com.itheima.health.service.ReportServicve;
import com.itheima.health.service.SetmealService;
import com.itheima.health.utils.aliyunoss.AliyunUtils;
import com.itheima.health.utils.redis.RedisUtil;
import com.itheima.health.utils.resources.RedisConstant;
import com.itheima.health.utils.resources.UploadUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;


@RestController
@Api(tags = "报表模块管理")
public class ReportlController {

    @Reference
    private ReportServicve reportServicve;


    @GetMapping("report/memberReportByLastYear")
    public Result memberReportByLastYear() {
      Map memberMap = reportServicve.memberReportByLastYear();

        return new Result(memberMap);
    }
    @GetMapping("report/setmealProportion")
    public Result setmealProportion() {
        return new Result(reportServicve.setmealProportion());
    }

}

